<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>{$cms_name|escape:"html":"UTF-8"} {$cms_version|escape:"html":"UTF-8"} {if $title}- {$title|escape:"html":"UTF-8"}{/if}</title>
	<meta http-equiv="X-UA-Compatible" content="chrome=1">
	<script type="text/javascript" charset="utf-8">
		var home_dir = '{$site.home_dir}';
	</script>
	<script src="/admin/backend/resources/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/jquery-ui.min.js" type="text/javascript" charset="utf-8"></script>

	<script src="/admin/backend/resources/js/jquery.taconite.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/jquery.form.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/jquery.growl.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/jquery.livequery.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/jquery.color.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/jquery.regex.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/jquery.blockUI.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/jquery.progressbar.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/jquery.defaultValue.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/tagfields.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/fancybox/jquery.fancybox-1.3.1.pack.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/date-picker-v5/js/datepicker.packed.js" type="text/javascript" charset="utf-8"></script>
	
	<script src="/admin/backend/resources/js/jstree/_lib/css.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/jstree/_lib/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/jstree/tree_component.js" type="text/javascript" charset="utf-8"></script>
	<link rel="stylesheet" href="/admin/backend/resources/js/jstree/tree_component.css" type="text/css" charset="utf-8" />
	
	<script language="javascript" type="text/javascript" src="/admin/backend/resources/js/tiny_mce/tiny_mce.js"></script>
	
	<script src="/admin/backend/resources/js/common.js" type="text/javascript" charset="utf-8"></script>
	
	<link rel="stylesheet" href="/admin/backend/resources/css/reset.css" type="text/css" charset="utf-8" />
	<link rel="stylesheet" href="/admin/backend/resources/css/webtacular.css" type="text/css" charset="utf-8" />
	<!--[if lte IE 7.0]>
	<link rel="stylesheet" href="/admin/backend/resources/css/ie.css" type="text/css" charset="utf-8" />
	<![endif]-->
	
	<link rel="stylesheet" href="/admin/backend/resources/js/fancybox/jquery.fancybox-1.3.1.css" type="text/css" charset="utf-8" />
	<link rel="stylesheet" href="/admin/backend/resources/js/date-picker-v5/css/datepicker.css" type="text/css" charset="utf-8" />
	
	<script src="/admin/backend/resources/js/{$path.0}{if $path.1}-{$path.1}{/if}.js" type="text/javascript" charset="utf-8"></script>
	<link rel="stylesheet" href="/admin/backend/resources/css/{$path.0}{if $path.1}-{$path.1}{/if}.css" type="text/css" charset="utf-8" />
	
	<script type="text/javascript" charset="utf-8">
		swfu_settings.post_params = {ldelim} php_session_id: '{$session_id}' {rdelim};
	</script>
	<script src="/admin/backend/resources/js/swfupload/swfupload.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/swfupload/plugins/swfupload.queue.js" type="text/javascript" charset="utf-8"></script>
	<script src="/admin/backend/resources/js/swfupload.js" type="text/javascript" charset="utf-8"></script>
	
</head>

<body>

<div id="ajax-login">
	<h2>Login</h2>
	
	<div class="messages" style="display:none">
		<p>Oops, the details you provided didn't match anything we've got in our system.</p>
		<p>If you can't remember your username or password, please contact your website administrator.</p>
	</div>
	
	<form action="/admin/login/" method="post" class="form">
		<div>
			<label for="username_or_email">Username or email address</label>
			<input type="text" name="login[username_or_email]" value="{$smarty.post.login.username_or_email|escape:"html":"UTF-8"}" id="username_or_email" class="text" />
		</div>
		<div>
			<label for="password">Password</label>
			<input type="password" name="login[password]" value="{$smarty.post.login.password|escape:"html":"UTF-8"}" id="password" class="text" />
		</div>
		
		<input type="submit" name="login-button" value="Login" class="button" />
	</form>
</div>

<div id="uploadprogress">
	<div class="progressbar"></div>
	<a href="#" class="cancel">Cancel</a>
</div>

<div id="templates">
	<div class="growl-message-container">
		<div class="growl-message">
			<strong>%title%</strong><br />
			%message%
		</div>
	</div>
	<div class="growl-error-container">
		<div class="growl-error">
			<strong>%title%</strong><br />
			%message%
		</div>
	</div>
</div>
	
<div id="header">
	<div class="right">
		<a href="http://{$site.domain_name}/" target="_blank">{$site.domain_name}</a>
		<span id="timeout"></span>
	</div>
	<ul>
		<li><strong>{$cms_name|escape:"html":"UTF-8"}</strong>
			<ul>
				<li><a href="/admin/backend/resources/about.html" class="fancybox">About {$cms_name|escape:"html":"UTF-8"}</a></li>
				{*<li><a href="/admin/preferences/">Preferences</a></li>*}
				<li><hr /></li>
				<li><a href="/admin/logout/">Logout</a></li>
			</ul>
		</li>
		{foreach from="`$navigation`" key="category" item="links"}
			<li><a href="">{$category|escape:"html":"UTF-8"}</a>
				<ul>
					{foreach from="`$links`" key="name" item="link"}
						{if $name == 'seperator'}
							<li><hr /></li>
						{else}
							<li class="{if $link.selected}selected{/if} {if $smarty.session.login.user.user_type==1 and $smarty.session.login.user.access_rights[$link.path] != 1}noaccess{/if}"><a href="/admin/{$link.path}/">{$name|escape:"html":"UTF-8"}</a></li>
						{/if}
					{/foreach}
				</ul>
			</li>
		{/foreach}
	</ul>
	&nbsp;
</div>

<div id="container">
